home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / xdbtool.odl < prev    next >
Encoding:
Text File  |  2006-08-23  |  2.5 KB  |  60 lines

  1. // This file will be processed by the MIDL compiler to produce the
  2. // type library (NewDwg.tlb).
  3.  
  4. [ uuid(61E0E050-6F1E-11d2-8D6A-000021452DB6), version(1.0) ]
  5. library XDbTool
  6. {
  7.     importlib("stdole32.tlb");
  8.     importlib("stdole2.tlb");
  9.  
  10.     [
  11.          uuid(66A15870-6726-11d2-8D5B-000021452DB6)
  12.         ,oleautomation
  13.         ,dual
  14.         ,hidden, restricted
  15.     ]
  16.     interface ITool : IDispatch
  17.     {
  18.         [propput, id(1)]    HRESULT Parent([in] IDispatch* pIUnk);
  19.         [propget, id(1)]    HRESULT Parent([out, retval] IDispatch** ppIUnk);
  20.  
  21.         [propget, id(2)]    HRESULT ToolProperties([out, retval] IDispatch** ppIDisp);
  22.         [propget, id(3)]    HRESULT ToolCommands([out, retval] IDispatch **ppIDisp);
  23.         [propget, id(4)]    HRESULT ObjectProperties([out, retval] IDispatch** ppIDisp);
  24.  
  25.          [id(5)]            HRESULT DoLMCommand([in] long lID);
  26.          [id(6)]            HRESULT GetPicture([out, retval] IDispatch** pIPict);
  27.     }
  28.  
  29.     [
  30.         uuid(0C926530-68C5-11d2-8D5E-000021452DB6),
  31.         oleautomation,
  32.         dual
  33.     ]
  34.     interface IToolEvents : IDispatch
  35.     {
  36.         [id(1)]    HRESULT ToolChangePrompt([in] IDispatch *pIDispTool, [in] BSTR bstrPrompt, [in] BOOL bAdd);
  37.         [id(2)]    HRESULT ToolChangeCommands([in] IDispatch *pIDispTool, [in] long lCommandCount, [in] VARIANT *pvarCommandNames, [in] VARIANT *pvarCommandPrompts, [in] VARIANT *pvarEnabled, [in] VARIANT *pvarChecked, [in] BOOL bAdd);
  38.         [id(3)]    HRESULT ToolChangeCursor([in] IDispatch *pIDispTool, [in] VARIANT *pvarCursor);
  39.         [id(4)]    HRESULT ToolChangeProperties([in] IDispatch *pIDispProps, [in] long flags);
  40.     }
  41.  
  42.     [
  43.          uuid(0FEE2B82-6727-11d2-8D5B-000021452DB6)
  44.         ,oleautomation
  45.         ,dual
  46.         ,hidden, restricted
  47.     ]
  48.     interface IViewMouseEvents : IDispatch
  49.     {
  50.         [id(1)] HRESULT MouseDown([in] IDispatch* WhichDrawing, [in] IDispatch* WhichView, [in] short Button, [in] long Shift, [in] long X, [in] long Y, [out, retval] BOOL* pbCancel);
  51.         [id(2)] HRESULT MouseUp([in] IDispatch* WhichDrawing, [in] IDispatch* WhichView, [in] short Button, [in] long Shift, [in] long X, [in] long Y, [out, retval] BOOL* pbCancel);
  52.         [id(3)] HRESULT MouseMove([in] IDispatch* WhichDrawing, [in] IDispatch* WhichView, [in] long Shift, [in] long X, [in] long Y, [out, retval] BOOL* pbCancel);
  53.         [id(4)] HRESULT BeforeDoubleClick([in] IDispatch* WhichDrawing, [in] IDispatch* WhichView, [in] IDispatch* Sel, [out, retval] BOOL* pbCancel);
  54.         [id(5)] HRESULT BeforeRightClick([in] IDispatch* WhichDrawing, [in] IDispatch* WhichView, [in] IDispatch* Sel, [out, retval] BOOL* pbCancel);
  55.     }
  56.  
  57.     //{{AFX_APPEND_ODL}}
  58.     //}}AFX_APPEND_ODL}}
  59. };
  60.